<!DOCTYPE html>
<html>
    <head>
        <script src="../vue.global.js"></script>
    </head>
    <body>
        <div id="app">
            <p>税前:{{amount}}</p>
            <p>税后:{{computeAmount}}</p>
        </div>
        <script>
            Vue.createApp({
                data(){
                    return{
                        amount:100
                    };
                },
                computed:{
                    computeAmount(){
                        return this.amount*1.1;
                    }
                }
            }).mount('#app');
        </script>
    </body>
</html>